home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / NCSA / tn3270 2.4d7 source / tn3270 / makefile < prev    next >
Makefile  |  1992-04-18  |  10KB  |  314 lines

  1. #
  2. #  tn3270 for the Macintosh Source Code
  3. #  Brown University Computing and Information Services
  4. #  Version 2.4d7  April, 1992
  5. #  Copyright (c) 1988, 1989, 1990, 1991, 1992 by Brown University and by
  6. #  Peter John DiCamillo.
  7. #
  8. #  Permission is granted to any individual or institution to use, copy,
  9. #  or redistribute the binary version of this software and its
  10. #  documentation provided this notice and the copyright notices are
  11. #  retained.  Permission is granted to any individual or non-profit
  12. #  institution to use, copy, modify, or redistribute the source files
  13. #  of this software provided this notice and the copyright notices are
  14. #  retained.  This software may not be distributed for profit, either
  15. #  in original form or in derivative works, nor can the source be
  16. #  distributed to other than an individual or a non-profit institution.
  17. #  Any  individual or group interested in seeing and/or using these
  18. #  source files but who are prevented from doing so by the above
  19. #  constraints should contact Don Wolfe, Assistant Vice-President for
  20. #  Computer Systems at Brown University, (401) 863-7250, for possible
  21. #  software licensing of the source developed at Brown.
  22. #
  23. #  Brown University and Peter John DiCamillo make no representations
  24. #  about the suitability of this software for any purpose.
  25. #
  26. #  BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
  27. #  EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
  28. #  INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
  29. #  WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
  30. #
  31.  
  32. # control variables
  33.  
  34. ObjDir    = ":obj:"
  35. RscDir     = ":rsc:"
  36. LinkOpts = -msg multiple,warn,nodup
  37. ToolLinkOpts =
  38. COpts    = -r -mbg full
  39. DumpOpts = -d USEDUMP
  40. AsmOpts    = 
  41. TCPHdrDir = "{MPW}NCSA/BYU tcpip:"
  42. TCPLibDir = "{MPW}NCSA/BYU tcpip:"
  43. DNRDir = "{MPW}Libraries:Libraries:"
  44. AllDepend =
  45. # AllDepend = makefile
  46. DumpDepend = maclib.h termdef.h tn3270funcs.h globals.h
  47. GlobalDepend = {DumpDepend} tn3270DumpFile
  48.  
  49. # file list variables
  50.  
  51. CommonObj = {ObjDir}grafterm.c.o ∂
  52.             {ObjDir}api.c.o ∂
  53.             {ObjDir}apistg.c.o ∂
  54.             {ObjDir}attnmenu.c.o ∂
  55.             {ObjDir}bgproc.a.o ∂
  56.             {ObjDir}cdialog.c.o ∂
  57.             {ObjDir}crcf.c.o ∂
  58.             {ObjDir}dialogs.c.o ∂
  59.             {ObjDir}globals.c.o ∂
  60.             {ObjDir}hndkbd.c.o ∂
  61.             {ObjDir}kbtab.c.o ∂
  62.             {ObjDir}menu.c.o ∂
  63.             {ObjDir}prt.c.o ∂
  64.             {ObjDir}saio.c.o ∂
  65.             {ObjDir}scrap.c.o ∂
  66.             {ObjDir}serscrn.c.o ∂
  67.             {ObjDir}settings.c.o ∂
  68.             {ObjDir}sppc.c.o ∂
  69.             {ObjDir}switcher.c.o ∂
  70.             {ObjDir}util.c.o ∂
  71.             {ObjDir}vmxfer.c.o ∂
  72.             {ObjDir}writescr.c.o ∂
  73.             {ObjDir}writesf.c.o ∂
  74.             {ObjDir}writetm.c.o
  75.  
  76. # rules for creating object code files
  77.  
  78. # tool programs:
  79.  
  80. {ObjDir}addsw.c.o ƒ {AllDepend} maclib.h addsw.c 
  81.     C {COpts} addsw.c -o {ObjDir}addsw.c.o
  82.     
  83. {ObjDir}genattn.c.o ƒ {AllDepend} maclib.h genattn.c 
  84.     C {COpts} genattn.c -o {ObjDir}genattn.c.o
  85.  
  86. {ObjDir}genktab.c.o ƒ {AllDepend} genktab.c
  87.     C {COpts} genktab.c -o {ObjDir}genktab.c.o
  88.  
  89. # object code common to all versions:
  90.  
  91. {ObjDir}api.c.o ƒ {AllDepend} {GlobalDepend} sppc.h telnet.h api.c
  92.     C {COpts} {DumpOpts} api.c -o {ObjDir}api.c.o    
  93.  
  94. {ObjDir}apistg.c.o ƒ {AllDepend} {GlobalDepend} apistg.c
  95.     C {COpts} {DumpOpts} apistg.c -o {ObjDir}apistg.c.o    
  96.  
  97. {ObjDir}attnmenu.c.o ƒ {AllDepend} {GlobalDepend} attnmenu.c 
  98.     C {COpts} {DumpOpts} attnmenu.c -o {ObjDir}attnmenu.c.o    
  99.     
  100. {ObjDir}bgproc.a.o ƒ {AllDepend} bgproc.a 
  101.     Asm {AsmOpts} bgproc.a -o {ObjDir}bgproc.a.o
  102.     
  103. {ObjDir}cdialog.c.o ƒ {AllDepend} {GlobalDepend} cdialog.c 
  104.     C {COpts} {DumpOpts} cdialog.c -o {ObjDir}cdialog.c.o
  105.     
  106. {ObjDir}crcf.c.o ƒ {AllDepend} crcf.c 
  107.     C {COpts} crcf.c -o {ObjDir}crcf.c.o
  108.  
  109. {ObjDir}dialogs.c.o ƒ {AllDepend} {GlobalDepend} dialogs.c 
  110.     C {COpts} {DumpOpts} dialogs.c -o {ObjDir}dialogs.c.o
  111.  
  112. {ObjDir}globals.c.o ƒ {AllDepend} maclib.h termdef.h globals.c 
  113.     C {COpts} {DumpOpts} globals.c -o {ObjDir}globals.c.o
  114.  
  115. {ObjDir}grafterm.c.o ƒ {AllDepend} {GlobalDepend} telnet.h grafterm.c 
  116.     C {COpts} {DumpOpts} grafterm.c -o {ObjDir}grafterm.c.o
  117.     
  118. {ObjDir}hndkbd.c.o ƒ {AllDepend} {GlobalDepend} hndkbd.c 
  119.     C {COpts} {DumpOpts} hndkbd.c -o {ObjDir}hndkbd.c.o
  120.     
  121. {ObjDir}kbtab.c.o ƒ {AllDepend} genktab keycodes.memo
  122.     genktab keycodes.memo
  123.     Delete kbnames.new
  124.     Delete -i kbtab.c
  125.     Rename kbtables.new kbtab.c
  126.     C {COpts} kbtab.c -o {ObjDir}kbtab.c.o
  127.     
  128. {ObjDir}menu.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h menu.c ∂
  129.                             {TCPHdrDir}netevent.h ∂
  130.                             {TCPHdrDir}hostform.h                         
  131.     C {COpts} {DumpOpts} -i {TCPHdrDir} menu.c -o {ObjDir}menu.c.o
  132.     
  133. {ObjDir}prt.c.o ƒ {AllDepend} {GlobalDepend} prt.c
  134.     C {COpts} {DumpOpts} prt.c -o {ObjDir}prt.c.o
  135.     
  136. {ObjDir}saio.c.o ƒ {AllDepend} {GlobalDepend} saio.c 
  137.     C {COpts} {DumpOpts} saio.c -o {ObjDir}saio.c.o
  138.  
  139. {ObjDir}scrap.c.o ƒ {AllDepend} {GlobalDepend} scrap.c
  140.     C {COpts} {DumpOpts} scrap.c -o {ObjDir}scrap.c.o
  141.     
  142. {ObjDir}serscrn.c.o ƒ {AllDepend} {GlobalDepend} serscrn.c 
  143.     C {COpts} {DumpOpts} serscrn.c -o {ObjDir}serscrn.c.o
  144.     
  145. {ObjDir}settings.c.o ƒ {AllDepend} {GlobalDepend} settings.c 
  146.     C {COpts} {DumpOpts} settings.c -o {ObjDir}settings.c.o
  147.     
  148. {ObjDir}sppc.c.o ƒ {AllDepend} sppcinterface.h sppc.c
  149.     C {COpts} sppc.c -o {ObjDir}sppc.c.o
  150.  
  151. {ObjDir}switcher.c.o ƒ {AllDepend} {GlobalDepend} switcher.c 
  152.     C {COpts} {DumpOpts} switcher.c -o {ObjDir}switcher.c.o
  153.     
  154. {ObjDir}util.c.o ƒ {AllDepend} {GlobalDepend} util.c 
  155.     C {COpts} {DumpOpts} util.c -o {ObjDir}util.c.o
  156.     
  157. {ObjDir}vmxfer.c.o ƒ {AllDepend} {GlobalDepend} vmxfer.c 
  158.     C {COpts} {DumpOpts} vmxfer.c -o {ObjDir}vmxfer.c.o
  159.     
  160. {ObjDir}writescr.c.o ƒ {AllDepend} {GlobalDepend} writescr.c 
  161.     C {COpts} {DumpOpts} writescr.c -o {ObjDir}writescr.c.o
  162.     
  163. {ObjDir}writesf.c.o ƒ {AllDepend} {GlobalDepend} writesf.c 
  164.     C {COpts} {DumpOpts} writesf.c -o {ObjDir}writesf.c.o
  165.     
  166. {ObjDir}writetm.c.o ƒ {AllDepend} {GlobalDepend} writetm.c 
  167.     C {COpts} {DumpOpts} writetm.c -o {ObjDir}writetm.c.o
  168.  
  169. # object code for specific versions
  170.  
  171. {ObjDir}serstub.c.o ƒ {AllDepend} {GlobalDepend} serstub.c 
  172.     C {COpts} {DumpOpts} serstub.c -o {ObjDir}serstub.c.o
  173.  
  174. {ObjDir}tcpio.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpio.c ∂
  175.                             {TCPHdrDir}netevent.h ∂
  176.                             {TCPHdrDir}kip.h ∂
  177.                             {TCPHdrDir}hostform.h
  178.     C {COpts} {DumpOpts} -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpio.c.o
  179.  
  180. {ObjDir}tcpiodrv.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpio.c ∂
  181.                             {TCPHdrDir}netevent.h ∂
  182.                             {TCPHdrDir}kip.h ∂
  183.                             {TCPHdrDir}hostform.h
  184.     C {COpts} {DumpOpts} -d TCPDRV -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpiodrv.c.o
  185.     
  186. {ObjDir}tcpevent.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpevent.c ∂
  187.                             {TCPHdrDir}netevent.h ∂
  188.                             {TCPHdrDir}hostform.h                         
  189.     C {COpts} {DumpOpts} -i {TCPHdrDir} tcpevent.c -o {ObjDir}tcpevent.c.o
  190.     
  191. {ObjDir}telnet.c.o ƒ {AllDepend} {GlobalDepend} telnet.h telnet.c 
  192.     C {COpts} {DumpOpts} telnet.c -o {ObjDir}telnet.c.o
  193.  
  194. # resource files common to all versions:
  195.  
  196. CommonRsc = {RscDir}general {RscDir}attnmap {RscDir}fonts ∂
  197.             {RscDir}icons version.r 
  198.  
  199. # rules for creating resource files
  200.  
  201. {RscDir}general ƒ {AllDepend} general.r
  202.     Rez general.r -o {RscDir}general
  203.  
  204. attnmap.r ƒ genattn
  205.     Delete -i attnmap.r
  206.     genattn
  207.     Confirm "Select 'Save' in genattn, then click here"
  208.     Rename attnmap.r.new attnmap.r
  209.     
  210. {RscDir}attnmap ƒ {AllDepend} attnmap.r
  211.     Rez attnmap.r -o {RscDir}attnmap
  212.  
  213. {RscDir}fonts ƒ {AllDepend} fonts.r
  214.     Rez fonts.r -o {RscDir}fonts
  215.         
  216. {RscDir}icons ƒ {AllDepend} icons.r
  217.     Rez icons.r -o {RscDir}icons
  218.         
  219. # rules for creating tool program 
  220.  
  221. addsw ƒƒ {AllDepend} {ObjDir}addsw.c.o
  222.     Delete -i addsw
  223.     Link -d -t MPST -c 'MPS ' {ToolLinkOpts} ∂
  224.         {ObjDir}addsw.c.o ∂
  225.         "{CLibraries}"StdClib.o ∂
  226.         "{Libraries}"Stubs.o ∂
  227.         "{Libraries}"Runtime.o ∂
  228.         "{Libraries}"Interface.o ∂
  229.         -o addsw
  230.  
  231. genattn ƒƒ {AllDepend} {ObjDir}genattn.c.o
  232.     Delete -i genattn
  233.     Link -t APPL -c '????' {LinkOpts} ∂
  234.         {ObjDir}genattn.c.o ∂
  235.         "{CLibraries}"StdClib.o ∂
  236.         "{Libraries}"Runtime.o ∂
  237.         "{Libraries}"Interface.o ∂
  238.         -o genattn
  239.  
  240. genktab ƒƒ {AllDepend} {ObjDir}genktab.c.o
  241.     Delete -i genktab
  242.     Link -d -c 'MPS ' -t MPST {ToolLinkOpts} ∂
  243.         {ObjDir}genktab.c.o ∂
  244.         "{CLibraries}"StdClib.o ∂
  245.         "{Libraries}"Stubs.o ∂
  246.         "{Libraries}"Runtime.o ∂
  247.         "{Libraries}"Interface.o ∂
  248.         -o genktab
  249.  
  250. # rules for creating dump file
  251.  
  252. tn3270DumpFile ƒ makedump.c {DumpDepend}
  253.     Delete -i tn3270DumpFile
  254.     C {COpts} makedump.c
  255.     Delete makedump.c.o
  256.  
  257. # rules for creating tn3270 versions
  258.  
  259. # MacTCP tn3270
  260. tn3270drv ƒƒ {AllDepend} {CommonObj} ∂
  261.              {ObjDir}serstub.c.o ∂
  262.              {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  263.              {CommonRsc} tcpdversion.r addsw
  264.     Delete -i tn3270drv
  265.     Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
  266.         {ObjDir}serstub.c.o ∂
  267.         {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  268.         "{CLibraries}"StdCLib.o ∂
  269.         "{Libraries}"Runtime.o ∂
  270.         "{Libraries}"Interface.o ∂
  271.         {TCPLibDir}tcplibd.o ∂
  272.         {DNRDir}dnr.c.o ∂
  273.         -o tn3270drv
  274.     Rez tcpdversion.r -a -o tn3270drv
  275.     addsw tn3270drv
  276.     Setfile -a BM tn3270drv
  277.  
  278. # NCSA tn3270
  279. tn3270 ƒƒ {AllDepend} {CommonObj} ∂
  280.              {ObjDir}serstub.c.o ∂
  281.              {ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
  282.              {CommonRsc} tcpversion.r addsw
  283.     Delete -i tn3270
  284.     Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
  285.         {ObjDir}serstub.c.o ∂
  286.         {ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
  287.         "{CLibraries}"StdCLib.o ∂
  288.         "{Libraries}"Runtime.o ∂
  289.         "{Libraries}"Interface.o ∂
  290.         {TCPLibDir}tcplib.ncsa.o ∂
  291.         -o tn3270
  292.     Rez tcpversion.r -a -o tn3270
  293.     addsw tn3270
  294.     Setfile -a BM tn3270
  295.  
  296. # MacTCP tn3270 testing version with large MF memory
  297. tn3270test ƒƒ {AllDepend} {CommonObj} ∂
  298.              {ObjDir}serstub.c.o ∂
  299.              {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  300.              {CommonRsc} tcpdversion.r addsw
  301.     Delete -i tn3270test
  302.     Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
  303.         {ObjDir}serstub.c.o ∂
  304.         {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  305.         "{CLibraries}"StdCLib.o ∂
  306.         "{Libraries}"Runtime.o ∂
  307.         "{Libraries}"Interface.o ∂
  308.         {TCPLibDir}tcplibd.o ∂
  309.         {DNRDir}dnr.c.o ∂
  310.         -o tn3270test
  311.     Rez tcpdversion.r -a -o tn3270test
  312.     addsw tn3270test test
  313.     Setfile -a BM tn3270test
  314.